
CFLAGS			= -Wall
LDFLAGS			= -lm -lpthread 


CC = gcc
CXX = gcc
STRIP = ls
TARGET	:= md5

OBJS = \
	main.o \
	md5.o\

all:$(TARGET)

$(TARGET):$(OBJS)
	$(CXX) -o $@ $^ $(LDFLAGS)
	$(STRIP) $@

%.o:%.c
	$(CC) -c -o $@ $< $(CFLAGS)

%.o:%.cpp
	$(CXX) -c -o $@ $< $(CFLAGS)

clean:
	@rm -rf *.o $(TARGET)
